home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d18
/
loancalc.arc
/
LOANCALC.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1991-04-28
|
1KB
|
46 lines
PROGRAM loancalc(input,output,lst);
VAR
key : char;
{$I READINT.PAS}
{$I INTRAISE.PAS}
{$I RTRUNC.PAS}
{$I RROUND.PAS}
{$I LOANNAGN.PAS}
{$I LOANRPAY.PAS}
{$I LOANRBAL.PAS}
{$I LOANLPAY.PAS}
{$I LOANAMRT.PAS}
BEGIN
REPEAT
REPEAT
ClrScr; {clear screen and home cursor}
writeln;
writeln('LOAN CALCULATION PROGRAM');
writeln;
writeln('CALCULATION OPTIONS:');
writeln;
writeln(' A: REGULAR PAYMENT ON A LOAN');
writeln(' B: REMAINING BALANCE ON A LOAN');
writeln(' C: LAST PAYMENT ON A LOAN');
writeln(' D: PRINT MORTGAGE AMORTIZATION TABLE');
writeln;
writeln(' X: EXIT TO SYSTEM');
writeln;
write('ENTER DESIRED OPTION: ');
read(kbd,key);write(key);
UNTIL key IN ['A', 'a', 'B', 'b', 'C', 'c', 'D', 'd', 'X', 'x'];
writeln; writeln;
IF NOT (key IN ['X', 'x']) THEN
CASE key OF
'A','a': RegPayLoan;
'B','b': RemainingBalance;
'C','c': LastLoanPayment;
'D','d': MortgageAmortization;
END
UNTIL key IN ['X', 'x'];
ClrScr; {clear screen and home cursor}
END.